import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

class QmToast {
  static toast(String msg) {
    if (msg.isNotEmpty) {
      Fluttertoast.showToast(
          msg: msg,
          toastLength: Toast.LENGTH_SHORT,
          gravity: ToastGravity.CENTER,
          timeInSecForIosWeb: 2,
          backgroundColor: Colors.black.withOpacity(0.6),
          textColor: Colors.white.withOpacity(0.9),
          fontSize: 16.0);
    }
  }
}
